package com.lz.service.ly.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lz.entity.Bank;
import com.lz.entity.Employee;
import com.lz.entity.MortgageSheet;
import com.lz.repository.ly.MortgageSheetRepository;
import com.lz.service.ly.MortgageSheetService;
import com.lz.vo.ly.SelectMortgageSheetVO;
@Service
public class MortgageSheetServiceImpl implements MortgageSheetService {

	@Autowired
	private MortgageSheetRepository nortgageSheetRepository;
	
	@Override
	public List<SelectMortgageSheetVO> getMortgageAll(Integer pageNo,Integer pageSize,MortgageSheet mortgageSheet,String start_time,String end_time) {
		return nortgageSheetRepository.getMortgageAll(pageNo,pageSize,mortgageSheet,start_time,end_time);
	}

	@Override
	public MortgageSheet getMortgageById(Integer id) {
		return nortgageSheetRepository.getMortgageById(id);
	}

	@Override
	public boolean updMortgage(MortgageSheet mortgageSheet) {
		Integer i = nortgageSheetRepository.updMortgage(mortgageSheet);
		if(i > 0) {
			return true;
		}
		return false;
	}

	@Override
	public Integer count(MortgageSheet mortgageSheet,String start_time,String end_time) {
		return nortgageSheetRepository.count(mortgageSheet,start_time,end_time);
	}

	@Override
	public List<Bank> getBankList() {
		return nortgageSheetRepository.getBankList();
	}

	@Override
	public List<Employee> getEmployeeList() {
		return nortgageSheetRepository.getEmployeeList();
	}

}
